﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Chat.Server
{
    /// <summary>
    /// Sent by the server when the command Client.LoginCmd sent by client is
    /// rejected upon some reason by the chat serevr.
    /// </summary>
    [Serializable]
    public class LoginFailedCmd : LoginResponseCmd
    {
        /// <summary>
        /// The reason description the client login was rejected on.
        /// </summary>
        public string Reason { get; protected set; }

        public LoginFailedCmd(string reason)
        {
            Reason = reason;
        }
    }
}
